<?

session_start();
require("../../../include/connect.php");
$PAGE=NULL;


$query="SELECT client_id, client_name, client_pname, client_adresse,client_localite,client_cp,client_tel,client_gsm, client_email
FROM _site_pr_client WHERE client_id=$ID";
$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat);
      echo $query;
$tmp[3]=addslashes($tmp[3]);

      
$PAGE="<script>
       document.form_client_modif.client_name.value='$tmp[1]';
       document.form_client_modif.client_pname.value='$tmp[2]';
       document.form_client_modif.client_adresse.value='$tmp[3]';
       document.form_client_modif.client_localite.value='$tmp[4]';
       document.form_client_modif.client_cp.value='$tmp[5]';
        document.form_client_modif.client_tel.value='$tmp[7]';
         document.form_client_modif.client_gsm.value='$tmp[8]';
        document.form_client_modif.client_email.value='$tmp[9]';

</script>";



echo $PAGE;





?>
